package com.aaa.dem1108.d03;
import com.aaa.dem1108.d03.Factory.FactoryApple;
import com.aaa.dem1108.d03.Factory.FactoryHuawei;
/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2022/11/8  15:37
 */


/**
 * 工厂方法模式：
 */
public class Test {
    public static void main(String[] args) {
        FactoryApple factoryApple = new FactoryApple();
        factoryApple.createcellphone();

        FactoryHuawei factoryHuawei = new FactoryHuawei();
        factoryHuawei.createcellphone();
    }
}
